package com.util;

import java.util.regex.Pattern;

/**
 * Created by 苏犇 on 2019/1/1. <br>
 */
public class ValidateUtil {

    private static String reg = "[`~!@#$%^&*()+=|{}':;',\\\\[\\\\].<>/?~！@#￥%……&*（）——+|{}【】‘；：”“’。，、？]";

    public static boolean isContainSpecialChar(String string) {
        boolean result = false;
        if (Pattern.matches(reg, string)) {
            result = true;
        }
        return result;
    }
}
